[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SENDMODEM SEXP

 Function
  Send a string to the modem.

 Syntax
  SENDMODEM str

   str  - A string expression to send to the modem.

 Remarks
  The primary use of this statement is to send commands to a modem when no
  one is online.  For example, you would use this to send a dial command to
  the modem in a call back PPL application.  However, it is not restricted
  to sending commands.  Note that modem commands must be terminated by a
  carriage return and that this statement will not automatically do it
  for you.  This allows you to send a command to the modem in several
  stages and only terminate the final stage with a carriage return.

 Examples
  BOOLEAN flag
  CDCHKOFF
  KBDCHKOFF
  DTROFF
  DELAY 18
  DTRON
  SENDMODEM "ATDT"
  SENDMODEM "5551212"
  SENDMODEM CHR(13)
  WAITFOR "CONNECT",flag,60
  IF (!flag) LOG "No CONNECT after 60 seconds",FALSE
  KBDCHKON
  CDCHKON

See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson